//********************************************************************
//	created:	13:2:2012   17:04
//	filename: 	xmlrpcexception.cpp
//	author:		tiamo
//	purpose:	x
//********************************************************************

#include "stdafx.h"
#include "xmlrpcexception.h"

//
// xmlrpc
//
namespace xmlrpc
{
	//
	// constructor
	//
	Exception::Exception(char const* fileName, int fileLine, char const* functionName, int32_t xmlrpcErrorCode, wchar_t const* format, ...) throw()
		: utils::Exception(fileName, fileLine, functionName)
	{
		mCode																= xmlrpcErrorCode;

		va_list argList;
		va_start(argList, format);
		platform::vsnwprintf(mMessage, ARRAYSIZE(mMessage), format, argList);
		va_end(argList);

		buildFullMessage();
	}
}
